<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <title>我要订货</title>
    <link rel="stylesheet" href="/css/Jingle.css">
    <link rel="stylesheet" href="/css/app1.css">
    <script type="text/javascript" src="/static/js/jquery-1.8.3.min.js"></script>
    <script>
        message = "{{Session::get('message')}}";
        if (message) {
            alert(message);
        }
    </script>
</head>
<body>

<div id="aside_container">
</div>

<div id="section_container">
    <section id="index_section" class="active">

        <script type="text/javascript">

        </script>

        <header>
            <nav class="left">
                <a href="javascript:window.history.go(-1);" data-icon="previous" data-target="back"
                   style="color:#FFFFFF"><img src="/image/backn.png">返回</a></nav>
            <h1 class="title" style="color:#ffffff;">我要订货</h1>
            <nav class="right">
                <a data-target="section" data-icon="info" href="##"
                   id="manualBtn"> </a></nav>

        </header>
        @if($rows['data'])
            @foreach($rows['data'] as $v)
        <form name="form1" action="{{urlHome('order','postAddAdres')}}" method="post">
            <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff"
                   style="border:2px solid #999999;margin-top:10px;">
                <tbody>
                <tr>
                    <td width="50%" height="100" valign="top">
                        <div align="center">
                            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                <tbody>
                                <tr>
                                    <td width="40%" height="50">
                                        <div align="center"><img src="/{{isset($v['pics'][0]) ?  $v['pics'][0] : ''}}"
                                                                 width="95%"></div>
                                    </td>
                                    <td width="60%" style="padding-left:10px;font-size:14px;line-height:26px;"><span
                                                style="color:#0033CC">{{$v['name']}}</span><br>
                                                    编号：{{$v['spu']}}<br>
                                                    装箱：{{$v['low_num']}} {{$v['spec_name']}}<br>
                                                    价格：<span style="color:#ff0000">{{$v['price']}}</span>元

                                    </td>
                                </tr>
                                <tr>
                                    <td height="36" colspan="2"
                                        style="padding:10px;text-align:center;font-size:18px;font-weight:bold;background-color:#333333;color:#FFFFFF">
                                        默认
                                    </td>
                                </tr>
                                <tr>
                                    <td height="50" colspan="2" style="padding:10px;text-align:center">
                                        数量&nbsp;&nbsp;<input name="num" value="{{$v['low_num']}}" type="tel"
                                                             style="width:52px;height:30px;" onclick="this.select()">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
            <center>
                <br>
                <input type="hidden" name="gid" value="{{$v['id']}}">
                <input type="submit" value="提交订单" class="button block"
                       style="background-color: rgb(0, 0, 0);margin-bottom:10px;width:96%;"></center>
        </form>
        <br>
            @endforeach

            @else

            <p style="text-align: center;color: lightgray;margin-top: 200px;">暂无数据</p>
        @endif
    </section>
</div>

</body>
</html>